package com.zhongpengcheng.blog.dao.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * 博客文章发布状态枚举
 * note: 1.记录变更 by zhongpengcheng
 *
 * @author zhongpengcheng
 * @date 2021/09/01 15:12
 **/
public enum PublishStatusEnum {
    /**
     * 文章仍是草稿
     */
    DRAFT(0),
    /**
     * 文章已发布
     */
    PUBLISHED(1);

    @EnumValue
    private final int value;

    PublishStatusEnum(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    @Override
    public String toString() {
        return String.valueOf(value);
    }
}
